package models

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ ShareAccessModel = (*customShareAccessModel)(nil)

type (
	// ShareAccessModel is an interface to be customized, add more methods here,
	// and implement the added methods in customShareAccessModel.
	ShareAccessModel interface {
		shareAccessModel
	}

	customShareAccessModel struct {
		*defaultShareAccessModel
	}
)

// NewShareAccessModel returns a model for the database table.
func NewShareAccessModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) ShareAccessModel {
	return &customShareAccessModel{
		defaultShareAccessModel: newShareAccessModel(conn, c, opts...),
	}
}
